# 列表每个元素的平方再求和
def squareOfSum(n):
    tmp = []
    for i in n:
        tmp.append(i*i)
    return sum(tmp)

list = [1,2,3]
print(squareOfSum(list))